package org.jsets.fastboot.oss.service;

import java.io.InputStream;
import java.util.List;
import org.jsets.fastboot.oss.model.entity.FileMeta;

/**
 * <p>
 * service-文件
 * </p>
 * <p>
 * 继承自MyService（ Mybatis Support Service）
 * </p>
 * 
 * 
 * 
 * @author wangjie
 *
 */
public interface IStorageEngineService {
	void initialize();
	void close();
	void makeBucket(String name);
	void removeBucket(String bucket);
	List<String> listBuckets();
	void upload(FileMeta metadata, InputStream inputStream);
	void upload(FileMeta metadata, byte[] data);
	void remove(FileMeta metadata);
	InputStream download(FileMeta metadata);
}